package com.lxf.cn;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;


/**
 * Created by liaoxuefeng on 2018/11/2.
 */

@SpringBootApplication
//扫描dao
@MapperScan(basePackages = {"com.lxf.cn.dao"})
public class Application extends  SpringBootServletInitializer{


    /**
     * 打包需要的配置
//     * @param   SpringBootServletInitializer
     * @return
     */
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(Application.class);
    }


    public static void main(String[] args) {
        new SpringApplicationBuilder(Application.class).run(args);
    }





}
